//
//  AppRouterManager.h
//  ZCJZ
//
//  Created by sujeking on 2019/12/9.
//  Copyright © 2019 jeking. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, AppRouterManagerType) {
    AppRouterManagerType_Native,
    AppRouterManagerType_Weex_Local,
    AppRouterManagerType_Weex_Remote,
    /// params 必须包含url字段【远程http:// 开头  本地local:// 开头 content字段 即加载html代码】
    AppRouterManagerType_H5,
    AppRouterManagerType_WX_MiniPragam,
};

/// 每个业务vc都接收参数都是NSDictionary 类型的 params
@interface SSAppRouter : NSObject

+ (void)replaceViewControllerWithRoute:(NSString *)name type:(AppRouterManagerType)type params:(NSDictionary *)params;
///
+ (void)pushViewControllerWithRoute:(NSString *)name type:(AppRouterManagerType)type params:(NSDictionary *)params;
///
+ (void)modalViewControllerWithRoute:(NSString *)name type:(AppRouterManagerType)type params:(NSDictionary *)params;

+ (void)popNagtiveViewController;

+ (void)popRootNagtiveViewController;

+ (void)dismissNagtiveViewController;

@end
